import BasicLayout from '@/layouts/BasicLayout';
import Home from '@/pages/Home';
import Devices from '@/pages/Inventory/Devices';
import DeviceInfo from '@/pages/Inventory/Devices/DeviceInfo';
import Tunnels from '@/pages/Inventory/Tunnels';
import NotFound from '@/pages/NotFound';

const routerConfig = [
  {
    path: '/',
    component: BasicLayout,
    children: [
      {
        path: '/devices',
        component: Devices,
        exact: true
      },
      {
        path: `/devices/deviceinfo/:id`,
        exact: true,
        component: DeviceInfo
      },
      {
        path: '/tunnels',
        component: Tunnels,
        exact: true,
      },
      {
        path: '/',
        component: Home,
        exact: true,
      },
      {
        // 404 没有匹配到的路由
        component: NotFound,
      },
    ],
  },
];
export default routerConfig;
